{php include template("admin/header");}

<!--main-->
<div class="midder">

{php include template("admin/menu");}

<div><form method="post" action="{SITE_URL}index.php?app=study&ac=admin&mg=study&ts=deleteuser"><input type="text" name="userid" /><input type="submit" value="删除用户数据" /></form></div>

<div class="page">{$pageUrl}</div>

<table  cellpadding="0" cellspacing="0">
<tr class="old"><td width="20">ID</td><td>UID</td><td>课程名字</td><td>课程介绍</td><td>课时统计</td><td>学员统计</td><td>创建时间</td><td>操作</td></tr>
{loop $arrStudy $key $item}
<tr class="odd"><td>{$item[studyid]}</td><td>{$item['userid']}</td><td><a href="{tsUrl('study','show',array('id'=>$item['studyid']))}" target="_blank">[{$item[studyname]}]</a></td><td>{php echo cututf8(t($item[studydesc]),0,20)}</td><td>{$item['count_lesson']}</td><td>{$item['count_learn']}</td><td>{php echo date('Y-m-d H:i:s',$item[addtime])}</td><td>

<a href="{SITE_URL}index.php?app=study&ac=admin&mg=study&ts=isaudit&studyid={$item[studyid]}">
{if $item['isaudit']==1}
<font color="red">[审核]</font>
{else}
取消审核
{/if}
</a>

<a href="{SITE_URL}index.php?app=study&ac=admin&mg=study&ts=isrecommend&studyid={$item[studyid]}">
{if $item[isrecommend]=='0'}
<font color="blue">[推荐]</font>
{else}
[取消推荐]
{/if}
</a> 
 <a href="{SITE_URL}index.php?app=study&ac=admin&mg=study&ts=edit&studyid={$item[studyid]}">[修改]</a> 
 <a href="{SITE_URL}index.php?app=study&ac=admin&mg=study&ts=del&studyid={$item[studyid]}">[删除]</a></td></tr>
{/loop}
</table>

</div>
{php include template("admin/footer");}